package cn.uniqueinfo.dp.mapper;

import cn.uniqueinfo.dp.vo.ColumnMetaDataVO;
import cn.uniqueinfo.dp.vo.FormGridColumnVO;
import cn.uniqueinfo.dp.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-23 21:48:33
 * @description:业务表单表格显示配置
 */
@Mapper
@Component
public interface FormGridColumnMapper extends BaseMapper<FormGridColumnVO> {

    FormGridColumnVO findGridColumn(ColumnMetaDataVO columnMetaDataVO);

    List<FormGridColumnVO> findGridColumnsByFormName(@Param(value = "form_name") String formName);

    List<FormGridColumnVO> findGridColumns(@Param(value = "formName") String formName, @Param(value = "list") List<RoleVO> list);

    Integer deleteByFormName(@Param(value = "form_name") String formName);
}
